home *** CD-ROM | disk | FTP | other *** search
/ Chip 2000 November / Chip Kasım 2000.iso / prog / basic / 09 / AXA2.CAB / DAJAVA.CAB / com / ms / dxmedia / BooleanBvr.class (.txt) < prev    next >
Encoding:
Java Class File  |  1997-10-14  |  1.1 KB  |  46 lines

  1. package com.ms.dxmedia;
  2.  
  3. import com.ms.com.ComFailException;
  4. import com.ms.dxmedia.rawcom.DABoolean;
  5. import com.ms.dxmedia.rawcom.IDABehavior;
  6. import com.ms.dxmedia.rawcom.IDABoolean;
  7.  
  8. public class BooleanBvr extends Behavior {
  9.    private IDABoolean _COMptr;
  10.  
  11.    public void setCOMBvr(IDABehavior var1) {
  12.       super.setCOMBvr(var1);
  13.       this._COMptr = (IDABoolean)var1;
  14.    }
  15.  
  16.    public static BooleanBvr newUninitBvr() {
  17.       return new BooleanBvr(new DABoolean());
  18.    }
  19.  
  20.    protected Behavior newUninitBehavior() {
  21.       return newUninitBvr();
  22.    }
  23.  
  24.    public IDABoolean getCOMPtr() {
  25.       return this._COMptr;
  26.    }
  27.  
  28.    public Object extract() {
  29.       try {
  30.          return new Boolean(this.getCOMPtr().Extract());
  31.       } catch (ComFailException var3) {
  32.          throw StaticsBase.handleError(var3);
  33.       }
  34.    }
  35.  
  36.    public BooleanBvr(IDABoolean var1) {
  37.       super(var1);
  38.       this._COMptr = var1;
  39.    }
  40.  
  41.    public BooleanBvr() {
  42.       super((IDABehavior)null);
  43.       this._COMptr = null;
  44.    }
  45. }
  46.